<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>简介</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.intl.html">intl</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intl.setup.html">安装／配置</a></div>
 <div class="up"><a href="book.intl.html">intl</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intro.intl" class="preface">
  <h1 class="title">简介</h1>
  <p class="para">
   Internationalization extension (further is referred as Intl) is a wrapper
   for <a href="http://www.icu-project.org/" class="link external">&raquo;&nbsp;ICU</a>
   library, enabling PHP programmers to perform
   <a href="http://www.unicode.org/reports/tr10/" class="link external">&raquo;&nbsp;UCA</a>-conformant collation and
   date/time/number/currency formatting in their scripts.
  </p>

  <p class="para">
   It tends to closely follow ICU APIs, so that people having experience
   working with ICU in either C/C++ or Java could easily use the PHP API.
   Also, this way ICU documentation would be useful to understand various ICU
   functions.
  </p>

  <p class="para">
   Intl consists of several modules, each of them exposes the corresponding
   ICU API:
  </p>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     Collator: provides string comparison capability with support for
     appropriate locale-sensitive sort orderings.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Number Formatter: allows to display number according to the localized
     format or given pattern or set of rules, and to parse strings into
     numbers.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Message Formatter: allows to create messages incorporating data (such
     as numbers or dates) formatted according to given pattern and locale
     rules, and parse messages extracting data from them.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Normalizer: provides a function to transform text into one of the Unicode
     normalization forms, and provides a routine to test if a given string is
     already normalized.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Locale: provides interaction with locale identifiers in the form of
     functions to get subtags from locale identifier; parse, compose,
     match(lookup and filter) locale identifiers.
    </span>
   </li>
  </ul>

  
  <div class="section" id="intl.links">
   <h2 class="title">Links</h2>
   <ul class="itemizedlist">
    <li class="listitem">
     <p class="para"><a href="http://site.icu-project.org/docs/" class="link external">&raquo;&nbsp;Miscellaneous ICU docs</a></p>
    </li>
    <li class="listitem">
     <p class="para"><a href="http://www.icu-project.org/userguide/" class="link external">&raquo;&nbsp;ICU User Guide</a></p>
    </li>
    <li class="listitem">
     <p class="para"><a href="http://www.unicode.org/reports/tr10/" class="link external">&raquo;&nbsp;Unicode Collation Algorithm</a></p>
    </li>
   </ul>
  </div>
  

 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.intl.html">intl</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intl.setup.html">安装／配置</a></div>
 <div class="up"><a href="book.intl.html">intl</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
